From: Magdalen Berns Date: Tue, 28 Jan 2014 20:04:59 +0000 (+0000) Subject: Magnifier: Disable unredirect when active X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2843 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0db3605f339ff12f6cb424ae637b3d4a10aedf57;p=gnome-shell.git Magnifier: Disable unredirect when active The unredirect feature does not apply to the magnifier and it prevents users from gaming whilst it is on so disable when magnifier is active and allow magnifier users to game! Bug https://bugzilla.gnome.org/show_bug.cgi?id=708985 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 4eb7d3e7d..5c79acbd4 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -125,10 +125,14 @@ const Magnifier = new Lang.Class({ zoomRegion.setActive(activate); }); - if (activate) + if (activate) { + Meta.disable_unredirect_for_screen(global.screen); this.startTrackingMouse(); - else + } + else { + Meta.enable_unredirect_for_screen(global.screen); this.stopTrackingMouse(); + } // Make sure system mouse pointer is shown when all zoom regions are // invisible.